<?php /* Smarty version 2.6.26, created on 2018-07-05 14:44:55
         compiled from D:%5Cwww%5Cvweb/admin%5Ctemplates/api/oss.html */ ?>
<?php $_smarty_tpl_vars = $this->_tpl_vars;
$this->_smarty_include(array('smarty_include_tpl_file' => "index/header.html", 'smarty_include_vars' => array()));
$this->_tpl_vars = $_smarty_tpl_vars;
unset($_smarty_tpl_vars);
 ?> 
<div class="nav"><span>对象云存储</span></div>
<div class="explain">
	<div class="name"><span>操作提示</span></div>
	<div class="con">
		<p>对象云存储是第三方数据存储的一种处理办法。可以有效的减轻本地服务器的压力。</p>
		<p>对象存储对于中小型海量文件不易管理等做为首选处理解决方案，交移专业图片专业维护，减少维护成本。</p>
	</div> 
</div>
<div class="main"> 
	<table width="100%" class="ltable">
		<thead>
			<tr>
				<th width="130">别名</th>
				<th width="150">服务名称</th> 
				<th width="120">bucket</th> 
				<th width="440">描述</th> 
				<th width="80">操作</th> 
				<th width="80">开启状态</th> 
				<th></th>
			</tr>
		</thead>
		<tbody>
		<?php if ($this->_tpl_vars['data']): ?> 
			<?php $_from = $this->_tpl_vars['data']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }if (count($_from)):
    foreach ($_from as $this->_tpl_vars['i']):
?>
			<tr>
				<td><?php echo $this->_tpl_vars['i']['alias']; ?>
</td> 
				<td><?php echo $this->_tpl_vars['i']['name']; ?>
</td> 
				<td><?php echo $this->_tpl_vars['i']['bucket']; ?>
</td>
				<td><?php echo $this->_tpl_vars['i']['describe']; ?>
</td>
				<td><a href="?m=api&a=oss_edit&id=<?php echo $this->_tpl_vars['i']['id']; ?>
" class="edit">编辑</a></td> 
				<td><?php if ($this->_tpl_vars['i']['status']): ?>
						<span style="font-weight:bold;color:#FF0000;">使用中</span>
					<?php else: ?>
						<a href="?m=api&a=oss_ch&id=<?php echo $this->_tpl_vars['i']['id']; ?>
">选择</a>
					<?php endif; ?>
				</td>
				<td></td>
			</tr>
			<?php endforeach; endif; unset($_from); ?>
		<?php else: ?>
			<tr><td colspan="7">还没有数据，赶快添加吧！</td></tr>
	<?php endif; ?>
	</tbody>
</table> 
</div>
<?php $_smarty_tpl_vars = $this->_tpl_vars;
$this->_smarty_include(array('smarty_include_tpl_file' => "index/footer.html", 'smarty_include_vars' => array()));
$this->_tpl_vars = $_smarty_tpl_vars;
unset($_smarty_tpl_vars);
 ?>